home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 May / Macworld (1998-05).dmg / Shareware World / Comms & Internet / ProTERM_1.2.5.Install / ProTERM Mac1.2.5 / Extras / Resident User Empty < prev    next >
Text File  |  1997-06-06  |  3KB  |  80 lines

  1. /**********************************************
  2.  *                                            *
  3.  *  ProTERM Mac Resident User Macro Template  *
  4.  *                                            *
  5.  *       Version 1202   Updated 4/30/97       *
  6.  *                                            *
  7.  **********************************************/
  8.  
  9. /*
  10. This empty “macro template” file can be used to add additional and personalized macros to ProTERM. To use this file, drag it to the Macros folder, and rename the file as “Resident User xxxx” where “xxxx” is the name of your choice. Example: Resident User MyFile
  11.  
  12. Drag the "Resident User Empty" file from the Extras folder to the Macros
  13. folder, and rename the file something like "Resident User MyFile" (whatever
  14. pleases you). The first part of the name must be "Resident User" but the latter
  15. part of the name must have something appended to distinguish and personalize
  16. the file e.g., "Resident User Fudge").
  17.  
  18. Select a key that would you want to program to do the desired action. That is,
  19. which key do you want to press to do the action. 
  20.  
  21.  1- Open the Resident User (macro) document you will be working with, and
  22.     decide which F-key is to be used for the planned function.
  23.  2- Choose "Macro Key" Info from the ProTERM Tools > Additions menu.
  24.  3- What kind of window do you want the keystroke to work in. Choose from the
  25.     pop-up window "Activate From:": Document, Terminal or Any Window
  26.  4- Press the key, or key combination, and note the special key code
  27.     information for that key appears in the "Function Name:" window, and the
  28.     special key code information is selected. This coded information is also
  29.     called the "key binding" code, as it binds, or defines, a particular key or
  30.     set of keys to a specific code that your Mac can identify as a command.
  31.  5- Choose Copy from the Edit menu to copy the result. (If you press COMMAND+C
  32.     to copy the information, instead of copying the result as you might expect,
  33.     the Macro Key Info command produces the key binding (programing info) for
  34.     that key press of COMMAND+C, and that is not what you want.)
  35.  
  36. Look through some of the other macro files for examples. See the ProTERM Help file DIRC Reference. The ProTERM user manual has 80+ pages of macro assistance.
  37.  
  38. */
  39.  
  40. //
  41. // special "link" code just in case file is executed directly
  42. //
  43. FUNC main()
  44. {
  45.  SHARED STR _mac0;
  46.  EXTERN(_mac0,main(1));
  47.  RETURN;
  48. }
  49.  
  50. /***********************************************************************/
  51. /*                   Start of Startup Macros                           */
  52. /***********************************************************************/
  53.  
  54. FUNC startup()
  55. {
  56. //
  57. // Add startup macro variables after this comment
  58. //
  59.  
  60. // leave this code unchanged
  61.  RESIDENT("",0,#KeyAccess+#LibAccess);
  62.  RETURN;
  63. }
  64.  
  65.  
  66. /***********************************************************************/
  67. /*                   Start of Keyboard Macros                          */
  68. /***********************************************************************/
  69.  
  70.  
  71. /***********************************************************************/
  72. /*                   Start of Library Macros                           */
  73. /***********************************************************************/
  74.  
  75.  
  76. /***********************************************************************/
  77. /*                   Start of Event Macros                             */
  78. /***********************************************************************/
  79.  
  80.